﻿@using MakeWeekConcerts.Models
@using Microsoft.AspNet.Mvc.Facebook.Models
@using Microsoft.AspNet.Mvc.Facebook
@model IList<SimpleFacebookFriend>

<table class="table-striped table-bordered">
    @foreach (var friend in Model)
    {
        <tr>
            <td>
                @if (friend.Picture != null && friend.Picture.Data != null)
                {
                <img class="img-polaroid" src="@friend.Picture.Data.Url" />
                }
            </td>
            <td>
                <a target="_top" href="@GlobalFacebookConfiguration.Configuration.AppUrl@Url.Action("FriendDetails", new { id = friend.Id })">
                    @friend.Name
                </a>
            </td>
        </tr>
    }
</table>